﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace DoeLibsMVC.Controllers
{
    public class ImportController : BaseController
    {
        //
        // GET: /Import/


        [Authorize(Roles = Security.UserCategoryHelper.STAFF_CATEGORY)]
        public ActionResult Index()
        {
            return View();
        }

        [Authorize(Roles = Security.UserCategoryHelper.STAFF_CATEGORY)]
        public ActionResult JavaScriptTesting()
        {
            return View();
        }

        [HttpPost]
        public JsonResult processRow(string rowJSON)
        {
            JArray row = JsonConvert.DeserializeObject<JArray>(rowJSON);
            
            return Json(row);
        }

    }
}
